package one.stand.service;

import com.jmp.base.dto.OrderPayWxAppVo;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public interface OrdersPayService {

    int TYPE_WX = 0;
    int TYPE_ALIPAY = 1;
    int TYPE_WX_APP = 2;

    /**
     * 支付:微信jsapi
     */
    Map<String, String> payWxJsapi(Integer orderId, Integer addressId, String remark, Integer optUserId);

    /**
     * 支付回调:微信jsapi
     */
    void payWxJsapiBack(String notifyData);

    /**
     * 支付:微信APP
     */
    OrderPayWxAppVo payWxApp(List<Integer> orderIds, Integer optUserId);

    /**
     * 支付回调：微信APP
     */
    void payWxAppBack(String notifyData);

    String payAlipay(List<Integer> orderIds, Integer optUserId);

    void payAlipayBack(Map<String, String> parameters);

    /**
     * 退款申请
     */
    void refund(Integer orderId);
}
